package cn.factorybox.client;

import cn.factorybox.model.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-03-29 16:54
 */

@FeignClient(value = "factory-item-service")
@RequestMapping("user")
public interface UserClient {

    @GetMapping("query")
    public User selectUser(@RequestParam(value = "username",required = false)String uName, @RequestParam(value = "password", required = false)String uPass, @RequestParam("userIp") String userIp);

}
